<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>贪吃蛇</title>
  </head>
  <!-- 创建游戏主窗口 -->
  <div id="main">
    <!-- 设置游戏舞台 -->
    <div id="stage">
      <div id="snack">
        <!-- snake内部的div 表示蛇的各部分 -->
        <div></div>
      </div>
      <!-- 设置食物 -->
      <div id="food">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
      </div>
    </div>
    <!-- 设置游戏的积分牌 -->
    <div id="score-panel">
      <div>SCORE: <span id="score">0</span></div>
      <div>level: <span id="level">1</span></div>
    </div>
  </div>
</html>
